class Stationlist {
  int? total;
  int? current;
  List<StationBean>? records;

  Stationlist({this.total, this.current, this.records});

  Stationlist.fromJson(Map<String, dynamic> json) {
    total = json['total'];
    current = json['current'];
    if (json['records'] != null) {
      records = <StationBean>[];
      json['records'].forEach((v) {
        records!.add(new StationBean.fromJson(v));
      });
    }
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = new Map<String, dynamic>();
    data['total'] = this.total;
    data['current'] = this.current;
    if (this.records != null) {
      data['records'] = this.records!.map((v) => v.toJson()).toList();
    }
    return data;
  }

}

class StationBean {
  String? stationId;
  String? stationName;
  int? stationType;
  int? status;
  double? totalGeneration;
  String? userName;
  double? powerInter;
  double? installCapacity;
  double? dayGeneration;
  int? collects;
  String? address;

  StationBean(
      {this.stationId,
        this.stationName,
        this.stationType,
        this.status,
        this.totalGeneration,
        this.userName,
        this.powerInter,
        this.installCapacity,
        this.dayGeneration,
        this.collects,
        this.address});

  StationBean.fromJson(Map<String, dynamic> json) {
    stationId = json['stationId'];
    stationName = json['stationName'];
    stationType = json['stationType'];
    status = json['status'];
    totalGeneration = json['totalGeneration'];
    userName = json['userName'];
    powerInter = json['powerInter'];
    installCapacity = json['installCapacity'];
    dayGeneration = json['dayGeneration'];
    collects = json['collects'];
    address = json['address'];
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = new Map<String, dynamic>();
    data['stationId'] = this.stationId;
    data['stationName'] = this.stationName;
    data['stationType'] = this.stationType;
    data['status'] = this.status;
    data['totalGeneration'] = this.totalGeneration;
    data['userName'] = this.userName;
    data['powerInter'] = this.powerInter;
    data['installCapacity'] = this.installCapacity;
    data['dayGeneration'] = this.dayGeneration;
    data['collects'] = this.collects;
    data['address'] = this.address;
    return data;
  }
}




